<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../res/jquery-3.7.1.min.js"></script>
    <script>
        $(document).ready(function(){
            $("#div1").css("color","#bfa")//设置css颜色
            .slideUp(2000)//向上移动
            .slideDown(2000);//向下移动
        });
    </script>
    
</head>
<body>
    <div class="" id="div1">114514</div>
</body>
</html>